﻿/***********************************************************************************//*
*  作者: 邹杭特                                                                       *
*  时间: 2021-04-24                                                                   *
*  版本: master_b9fdd5                                                                *
*  功能:                                                                              *
*   - 界面组接口                                                                      *
*//************************************************************************************/

using UnityEngine;
using System.Collections.Generic;
using BridgeUI.Model;

namespace BridgeUI
{
    public interface IPanelGroup
    {
        Transform Trans { get; }
        Dictionary<string, UIInfoBase> Nodes { get; }
        List<IUIPanel> RetrivePanels(string panelName);
        UIBindingController BindingCtrl { get; }
        Bridge OpenPanel(IUIPanel parentPanel, string panelName, int index);
        void ClosePanel(string panelName);
        void HidePanel(string panelName);
        bool IsPanelOpen(string panelName);
        bool IsPanelOpen<T>(string panelName, out T[] panels);
        bool TryOpenOldPanel(string panelName, UIInfoBase uiInfo, IUIPanel parentPanel, out Bridge bridgeObj);
        bool CreateInfoAndBridge(string panelName, IUIPanel parentPanel, int index, UIInfoBase uiInfo, out Bridge bridgeObj);
        void CreatePanel(UIInfoBase uiNode, Bridge bridge, IUIPanel parentPanel);
        void CansaleInstencePanel(string panelName);
       
    }
}